package com.fit.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.fit.interfaces.Borrow;

public class BorrowsBean implements Borrows {

	private Map<String, Borrow> borrows = new HashMap<String, Borrow>();
	
	/* (non-Javadoc)
	 * @see com.fit.service.Borrows#retrive()
	 */
	public Collection<Borrow> retrive(){
		return borrows.values();
	}
	/* (non-Javadoc)
	 * @see com.fit.service.Borrows#save(com.fit.interfaces.Borrow)
	 */
	public Borrow save(Borrow borrow){
		return borrows.put(borrow.getID(), borrow);
	}
	/* (non-Javadoc)
	 * @see com.fit.service.Borrows#retriveSingleBorrow(java.lang.String)
	 */
	public Borrow retriveSingleBorrow(String id){
		return borrows.get(id);
	}
	
//	public Borrow notedBorrow(String id){
//		return null;
//	}
}
